<template>
  <table>
    <tr>
      <th>电弧炉{{ tableId }}号除尘在线监控数据</th>
    </tr>
    <tr>
      <td>{{ tableId }}号烟尘含量{{ Number(monitorData[`dustMonitor${tableId}`].hychl) }}mg/m³</td>
    </tr>
    <tr>
      <td>{{ tableId }}号氧气含量{{ Number(monitorData[`dustMonitor${tableId}`].hyqhl) }}%</td>
    </tr>
    <tr>
      <td>{{ tableId }}号流速{{ Number(monitorData[`dustMonitor${tableId}`].hls) }}m/s</td>
    </tr>
    <tr>
      <td>{{ tableId }}号压力{{ Number(monitorData[`dustMonitor${tableId}`].hyl) }}Pa</td>
    </tr>
    <tr>
      <td>{{ tableId }}号温度{{ Number(monitorData[`dustMonitor${tableId}`].hwd) }}℃</td>
    </tr>
    <tr>
      <td>{{ tableId }}号工况流量{{ Number(monitorData[`dustMonitor${tableId}`].hgkll) }}m³/H</td>
    </tr>
  </table>
</template>

<script setup>
import { defineProps } from 'vue'

defineProps({
  tableId: {
    type: String,
    required: true,
  },
  monitorData: {
    type: Object,
    required: true,
  },
})
</script>

<style scoped>
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

td {
  padding: 1rem;
  color: #0e0e0e;
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.2s ease;
}

th {
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  color: #0f0f0f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.5rem;
}
</style>
